<?php
session_start();
include "session.php";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="html/text; charset=utf-8" />
<title>父模块管理</title>
</head>
<body>
<?php
  include "mysql.php";
  $aa=new mysql;
  $aa->link("");
  $del_id=$_GET["del_id"];
  if($del_id!=""){
      $query="delete from father_module_info where id='$del_id'";
      if($aa->excu($query)){
              echo "<script language=javascript>alert('父模块删除成功');</script>";
          }
  }
 
    ?>
<br> <br> <br> <br> <br> <br> <br> <br>
    <table width="50%" border="0" align="center" cellspacing="0"  cellpadding="0" >
        <tr>
            <td height="20" align="center" ><b>欢迎您管理父模块</b> </td>
        </tr>
    </table>
     <table width="40%" border="1" align="center" cellspacing="0"  cellpadding="0" >
        <tr>
            <td height="20" align="center" width="10%">编号</td>
            <td height="20" align="center" width="20%">显示序号 </td>
            <td height="20" align="center" width="40%">父模块名称 </td>
             <td height="20" align="center" width="30%"> 操作</td>
        </tr>
     </table>
     <table width="40%" border="1" align="center" cellspacing="0"  cellpadding="0" >
        <?php
         $query="select * from father_module_info order by show_order";
         $rst=$aa->excu($query);
         $m=0;
         while ($farther = mysql_fetch_array($rst)) {
                $m++;
      ?>
        <tr>
            <td height="20" align="center" width="10%"><?php echo $m; ?></td>
            <td height="20" align="center" width="20%"><?php echo $farther["show_order"]; ?> </td>
            <td height="20" align="center" width="40%"><?php echo $farther["module_name"]; ?></td>
             <td height="20" align="center" width="15%"><a href="farther_module_bj.php?module_id=<?php echo $farther[id]; ?>">编辑</a></td>
             <td height="20" align="center" width="15%"><a href="?del_id=<?php echo $farther[id]; ?>">删除</a></td>
        </tr>
        <?php } ?>
    </table>
</body>
</html>















